
<%= javascript_include_tag "editor","forum_fn","send_post" %>
<%= javascript_include_tag "jquery/jquery-1.3.2.min.js" %>
<%= javascript_include_tag "preview" %>


  <div id="page-body">

    <!-- 预览开始 -->
    <div id="preview_area" class="post bg2" style="display:none;">
      <div class="inner">                             
        <span class="corners-top"><span></span></span>
         <div class="postbody">
            <div id="preview_content" class="content">
            </div>
          </div>
        </div>
            <!-- 回到顶部 -->
        <div class="back2top"><a title="Top" href="#wrap" class="top">Top</a></div>
        <span class="corners-bottom"><span></span></span></div>
    </div>
    <hr class="divider">
    <hr/>
  <!-- 预览结束 -->
    	<% form_tag("/posts/create",{:methods => :post,:id => "postform"}) do %>
      <div class="panel" id="postingbox">
        <div class="inner"><span class="corners-top"><span></span></span>

          <h3>发布</h3>


          <fieldset class="fields1">

            <dl style="clear: left;">
              <dt><label for="subject">图标:</label></dt>
              <dd>
                <label for="icon">
                  <input type="radio" checked="checked" value="0" name="icon"/>
                  无
                </label>
              </dd>
            </dl>
            <dl style="clear: left;">
              <dt><label for="title">主题:</label></dt>
              <dd><input name="title" id="title" size="25" maxlength="64" tabindex="2"  class="inputbox autowidth" type="text"></dd>
            </dl>
            <dl style="clear: left;">
              <dt><label for="forum_id">分类:</label></dt>

                <% @tags.each do |tag| %>
                    <input type="checkbox" name="tags[]" value="<%= tag.id %>"><%= tag.name %>&nbsp;
                <% end %>
            </dl>


            <%= render :partial => "share/posting_content",:locals => {:post => nil} %>

          </fieldset>


          <span class="corners-bottom"><span></span></span>
        </div>
        </div>


          <div class="panel bg3">
            <div class="inner"><span class="corners-top"><span></span></span>
              <fieldset class="submit-buttons">
                <input name="commit" value="发表" class="button2" type="submit"/>&nbsp;
                <input name="commit" value="预览" class="button1"  type="button" onclick="preview()"/>&nbsp;
              </fieldset>
              <span class="corners-bottom"><span></span></span></div>
          </div>
        <% end %>





